//package com.handsome.utils;
//
//import org.springframework.mail.javamail.MimeMessageHelper;
//
//import javax.mail.MessagingException;
//import javax.mail.internet.MimeMessage;
//
///**
// * @Author Handsome
// * @Date 2022/2/16 9:39
// * @Version 1.0
// */
//@SuppressWarnings({"all"})
//public class SendEmailUtil {
//
//    private volatile static SendEmailUtil sendEmailUtil;
//
//    private SendEmailUtil() {
//    }
//
//    public static SendEmailUtil getSendEmailUtil() {
//        if (sendEmailUtil == null) {
//            synchronized (CreateDestFileNameUtil.class) {
//                if (sendEmailUtil == null) {
//                    sendEmailUtil = new SendEmailUtil();
//                }
//            }
//        }
//        return sendEmailUtil;
//    }
//
//    public void sendMailMessagecode(MimeMessage mimeMessage) throws MessagingException {
//        MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,true);
//        helper.setSubject("识时务者");
//        helper.setText("<h1 style = 'color: red;text-align: center;'>" +
//                "验证码都能错<br>老笨比了啊!" +
//                "</h1>",true);
//        helper.setTo("1327259918@qq.com");
//        helper.setFrom("1327259918@qq.com");
//    }
//
//    public void sendMailMessageothercode(MimeMessage mimeMessage) throws MessagingException {
//        MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,true);
//        helper.setSubject("识时务者");
//        helper.setText("<h1 style = 'color: red;text-align: center;'>" +
//                "验证码都能错<br>老笨比了啊!" +
//                "</h1>",true);
//        helper.setTo("3042992513@qq.com");
//        helper.setFrom("1327259918@qq.com");
//    }
//
//    public void sendMailMessagesuccess(MimeMessage mimeMessage) throws MessagingException {
//        MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,true);
//        helper.setSubject("识时务者");
//        helper.setText("<h1 style = 'color: springgreen;text-align: center;'>" +
//                "成功人士<br>恭喜你成功登录到<br>Handsome Blog<br>博客-后台管理系统！" +
//                "</h1>",true);
//        helper.setTo("1327259918@qq.com");
//        helper.setFrom("1327259918@qq.com");
//    }
//
//    public void sendMailMessageothersuccess(MimeMessage mimeMessage) throws MessagingException {
//        MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,true);
//        helper.setSubject("识时务者");
//        helper.setText("<h1 style = 'color: springgreen;text-align: center;'>" +
//                "成功人士<br>恭喜你成功登录到<br>Handsome Blog<br>博客-后台管理系统！" +
//                "</h1>",true);
//        helper.setTo("3042992513@qq.com");
//        helper.setFrom("1327259918@qq.com");
//    }
//
//    public void sendMailMessagefail(MimeMessage mimeMessage) throws MessagingException {
//        MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,true);
//        helper.setSubject("识时务者");
//        helper.setText("<h1 style = 'color: red;text-align: center;'>" +
//                "账户和密码都能错！<br>赶紧联系Handsome强者<br>获取正确的账户和密码！" +
//                "</h1>",true);
//        helper.setTo("1327259918@qq.com");
//        helper.setFrom("1327259918@qq.com");
//    }
//
//    public void sendMailMessageotherfail(MimeMessage mimeMessage) throws MessagingException {
//        MimeMessageHelper helper = new MimeMessageHelper(mimeMessage,true);
//        helper.setSubject("识时务者");
//        helper.setText("<h1 style = 'color: red;text-align: center;'>" +
//                "账户和密码都能错！<br>赶紧联系Handsome强者<br>获取正确的账户和密码！" +
//                "</h1>",true);
//        // 熊猪QQ：3042992513
//        helper.setTo("3042992513@qq.com");
//        helper.setFrom("1327259918@qq.com");
//    }
//}
